<%--
  Created by IntelliJ IDEA.
  User: Liu
  Date: 2023/8/23
  Time: 19:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
  <base href="${ctx}/">
    <title>商品新增</title>
  <script src="assets/lib/jQuery/jquery-3.7.0.min.js"></script>
  <script src="assets/lib/laydate/laydate.js"></script>
  <script src="assets/lib/layer/layer.js"></script>
  <script>
    const ctx = "${ctx}/";
    const error = "${error}"
    const success = "${success}";
  </script>
  <script src="assets/JS/commodity/add.js"></script>
  <link rel="stylesheet" href="assets/CSS/commodity/add.css">
</head>
<body>
<h1>新增商品信息</h1>
<div>
  <form id="commodityForm" action="commodity/add" method="post">
    <div>
      <label for="commodityId">商品编号:</label>
      <input type="text" name="commodityId" id="commodityId" placeholder="请输入商品编号" value="${commodity.commodityId}">
    </div>
    <div>
      <label for="commodityName">商品名称:</label>
      <input type="text" name="commodityName" id="commodityName" placeholder="请输入商品名称" value="${commodity.commodityName}">
    </div>
    <div>
      <label for="commodityType">商品类型:</label>
      <input type="text" name="commodityType" id="commodityType" placeholder="请输入商品类型" value="${commodity.commodityType}">
    </div>
    <div>
      <label for="price">商品价格:</label>
      <input type="text" name="price" id="price" placeholder="请输入商品价格" value="${commodity.commodityPrice}">
    </div>
    <div>
      <label for="supply">供应商:</label>
      <input type="text" name="supply" id="supply" placeholder="请输入供应商" value="${commodity.supply}">
    </div>
    <div>
      <label for="productionDate">出厂日期:</label>
      <input type="text" name="productionDate" id="productionDate" placeholder="请选择商品出厂日期" value="${commodity.productionDate}" readonly>
    </div>

    <div>
      <label></label>
      <button type="submit" id="confirm">确认</button>
      <button type="reset" id="reset">重置</button>
    </div>
  </form>
</div>
</body>
</html>
